#proc sendCmd {cmd} {
#	global results
#	global expect_out buffer
#	
#	send "$cmd\r"
#	expect "#"
#	append buffer $expect_out(buffer)
#}

proc sendCmd {cmd} {
	global results
	global expect_out buffer
	set timeout 60	
	
	send "$cmd\r"
	expect { 
		timeout { 
			puts "timeout" 
			exit 			
		}
		"#"	{
			append buffer $expect_out(buffer)			
		}
	}
}